import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('adminAccount', { schema: 'aurora' })
export class adminAccount {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id' })
  id: number;
  @Column('varchar', {
    name: 'account',
    nullable: true,
    comment: '账号',
  })
  account: string;
  @Column('varchar', {
    name: 'password',
    nullable: true,
    comment: '密码',
    select: false,
  })
  password: string;
  @Column('varchar', {
    name: 'head',
    nullable: true,
    comment: '头像',
  })
  head: string;
  @Column('varchar', {
    name: 'name',
    nullable: true,
    comment: '用户名',
  })
  name: string;
}
